package com.itheima.homework5;

import java.util.concurrent.ArrayBlockingQueue;

public class Demo5_Store_Producer_Consumer {
    public static void main(String[] args) {
        StoreHouse sh = new StoreHouse(10);
        new Thread(new Producer(sh),"生产").start();
        new Thread(new Consumer(sh),"消费").start();
    }
}
